//引入express服务器
var spider = require('./spider.js');
//var url = 'http://monolit.kwst.net/index.html',
var	targetDir = '../html-css-page-template/weston',
    override = true;

var list = [
		/*'https://themes.jozoor.com/html/joo/creative/01/assets/css/vendor.min.css',
		'https://themes.jozoor.com/html/joo/creative/01/assets/css/custom.css',
		'https://themes.jozoor.com/html/joo/creative/01/assets/css/styles.min.css',
		'https://themes.jozoor.com/html/joo/creative/01/assets/js/vendor.min.js', 
		'https://themes.jozoor.com/html/joo/creative/01/assets/js/scripts.min.js', 
		'https://themes.jozoor.com/html/joo/creative/01/assets/js/custom.js', */
		'http://t.commonsupport.com/weston/images/background/2.jpg',
		'http://t.commonsupport.com/weston/images/background/3.jpg',
		'http://t.commonsupport.com/weston/images/background/4.jpg',
		'http://t.commonsupport.com/weston/images/background/5.jpg',
		'http://t.commonsupport.com/weston/images/background/6.jpg',
		'http://t.commonsupport.com/weston/images/background/7.jpg',
		'http://t.commonsupport.com/weston/images/background/8.jpg',
		'http://t.commonsupport.com/weston/images/background/9.jpg',
		'http://t.commonsupport.com/weston/images/background/10.jpg',
		/*'http://sitetemplate.demo.ithemeslab.com/fizcon/images/main-slider/1.jpg',
		'http://sitetemplate.demo.ithemeslab.com/fizcon/images/main-slider/2.jpg',
		'http://sitetemplate.demo.ithemeslab.com/fizcon/images/main-slider/2.jpg'*/
	];

spider.fetchStaticFiles(list, targetDir, override, function(){
	console.log('-----static fetch complete.------');
});